package net.cookiefarmers.seedswap

class User {
String name
String description
String address
//private Date dateJoined
String email
String login
String password
String accountStatus 

    static constraints = {
	name(blank:false, nullable:false, matches:"[a-z A-Z1-9_]+")
	email(email:true, nullable:false)
	address(blank:true)
	description(blank:true)

	name(blank:false)
	login(unique:true)
	password(password:true)
	accountStatus(blank:true)
    }

String toString(){
	name
}
}
